import axios from '@/libs/api.request'

export class TreatmentBasicsLinkApi {
  // 通过待遇类型获取相应待遇环节
  static getBasicsLinkSelectList (params) {
    return axios.request({
      url: '/TreatmentBasicsLink/GetBasicsLinkSelectList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据条件获取待遇环节基础数据管理
  static getList (params) {
    return axios.request({
      url: '/TreatmentBasicsLink/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据ID获取待遇环节基础数据
  static getModel (params) {
    return axios.request({
      url: '/TreatmentBasicsLink/GetModel',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 保存待遇环节基础数据管理
  static save (params) {
    return axios.request({
      url: '/TreatmentBasicsLink/Save',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除待遇环节基础数据管理
  static delete (params) {
    return axios.request({
      url: '/TreatmentBasicsLink/Delete',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 待遇环节状态修改
  static updateLinkStatus (params) {
    return axios.request({
      url: '/TreatmentBasicsLink/UpdateLinkStatus',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
  
  // 负责人员类型
  static getPersonLiableType (params) {
    return axios.request({
      url: '/TreatmentBasicsLink/GetPersonLiableType',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }
  
  // 获取指定负责人 
  static getUserNameList (params) {
    return axios.request({
      url: '/TreatmentBasicsLink/GetUserNameList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出 
  static export (params) {
    return axios.request({
      url: 'TreatmentBasicsLink/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  
  
}